﻿<%@ Page Language="C#" MasterPageFile="~/giaovien/Manager3.master" AutoEventWireup="true"
    CodeFile="TrangNhapDiem.aspx.cs" Inherits="giaovien_NhapDiem" Title="Untitled Page" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head1" runat="Server">
    <link href="../CSS/FixItem.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphBody" runat="Server">
    <div style="width: 100%; height: auto;">
        <div id="main_panel" style="width: 100%;">
            <div id="personal_content" style="padding: 10px; border: 1px solid #ccc">
                <div class="personal_top_text">
                    Cập nhật điểm
                </div>
                <div style="height:200px;">
                    <div class="boxleft">
                        <div class="personal_style_form">
                            <span class="personal_laber">Năm học </span>
                            <asp:DropDownList ID="ddlNamHoc" runat="server" Width="120px" OnSelectedIndexChanged="ddlNamHoc_SelectedIndexChanged"
                                AutoPostBack="True">
                            </asp:DropDownList>
                        </div>
                        <div class="personal_style_form">
                            <span class="personal_laber">Lớp học </span>
                            <asp:DropDownList ID="ddlLopHoc" runat="server" Width="120px" AutoPostBack="True"
                                OnSelectedIndexChanged="ddlLopHoc_SelectedIndexChanged">
                            </asp:DropDownList>
                        </div>
                        <div class="personal_style_form">
                            <span class="personal_laber">Kỳ học </span>
                            <%-- <asp:RadioButtonList runat="server" ID="rdoHocKy" >
                    <asp:ListItem Text="I" ></asp:ListItem>
                    <asp:ListItem Text="II"></asp:ListItem>
                    </asp:RadioButtonList>--%>
                            <asp:RadioButton runat="server" ID="rdoKyI" Checked="true" GroupName="KyHoc" AutoPostBack="True"
                                OnCheckedChanged="rdoKyI_CheckedChanged" />I
                            <asp:RadioButton runat="server" ID="rdoKyII" GroupName="KyHoc" AutoPostBack="True"
                                OnCheckedChanged="rdoKyII_CheckedChanged" />II
                        </div>
                        <div class="personal_style_form">
                            <span class="personal_laber">Môn học </span>
                            <asp:DropDownList ID="ddlMonHoc" runat="server" Width="120px" CssClass="heighcontrol"
                                OnSelectedIndexChanged="ddlMonHoc_SelectedIndexChanged" AutoPostBack="True">
                            </asp:DropDownList>
                            &nbsp;&nbsp;&nbsp;
                        </div>
                        <div class="personal_style_form">
                            <span class="personal_laber"></span>
                        </div>
                    </div>
                    <div class="boxright">
                        <table style="border: 0.2px solid #ccc; width: 100%;">
                            <tr class="dong1" style="border-bottom: 0.2px solid #ccc; background-color: #E4ECEF">
                                <td colspan="2" style="text-align: center; font-size: 15px;">
                                    Tình trạng bảng điểm
                                </td>
                            </tr>
                            <tr class="dong1">
                                <td class="titledong">
                                    Trạng thái:
                                </td>
                                <td class="lbl">
                                    <asp:Label runat="server" ID="lblTrangThai"></asp:Label>
                                </td>
                            </tr>
                            <tr class="dong1">
                                <td class="titledong">
                                    Ngày gửi:
                                </td>
                                <td class="lbl">
                                    <asp:Label runat="server" ID="lblNgayGui"></asp:Label>
                                </td>
                            </tr>
                            <tr class="dong1">
                                <td class="titledong">
                                    Ngày sửa:
                                </td>
                                <td class="lbl">
                                    <asp:Label runat="server" ID="lblNgaySua"></asp:Label>
                                </td>
                            </tr>
                            <tr class="dong1">
                                <td class="titledong">
                                    Ngày duyệt:
                                </td>
                                <td class="lbl">
                                    <asp:Label runat="server" ID="lblNgayDuyet"></asp:Label>
                                </td>
                            </tr>
                            <tr class="dong1">
                                <td class="titledong">
                                    Thông báo nhận:
                                </td>
                                <td class="lbl">
                                    <asp:Label runat="server" ID="lblThongBao"></asp:Label>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
               <%-- <asp:Button  runat="server" ID="btnThem" Text="Nhập điểm" 
                    onclick="btnThem_Click"/>--%>
                <div style="width:100%;">
                    <asp:TabContainer ID="tabDiem" runat="server" ActiveTabIndex="0" Width="100%">
                        <asp:TabPanel runat="server" ID="tabDiemCuaLop" HeaderText="Điểm của lớp" Width="100%">
                            <ContentTemplate>
                                <div style="width: 100%">
                                    <asp:UpdatePanel runat="server" ID="updl1">
                                        <ContentTemplate>
                                            <asp:GridView ID="grvNhapDiem" Width="100%" runat="server" AutoGenerateColumns="False"
                                                ForeColor="#333333" AllowPaging="True" Height="28px" OnSelectedIndexChanged="grvNhapDiem_SelectedIndexChanged"
                                                OnRowDataBound="grvNhapDiem_RowDataBound" EnableModelValidation="True" PageSize="50"
                                                OnPageIndexChanging="grvNhapDiem_PageIndexChanging">
                                                <Columns>
                                                    <asp:TemplateField HeaderText="STT">
                                                        <ItemTemplate>
                                                            <%# Container.DataItemIndex + 1 %>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Mã học sinh" SortExpression="MaHS">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblMaHS" runat="server" Width="50px" Text='<%#Bind("MaHS") %>'></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Tên học sinh" SortExpression="TenHS">
                                                        <ItemTemplate>
                                                            <asp:Label runat="server" ID="lblTenHS" Text='<%#Bind("TenHS") %>'></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="M1" SortExpression="DiemMieng1">
                                                        <ItemTemplate>
                                                            <asp:TextBox ID="txtMieng1" runat="server" Text='<%#Bind("DiemMieng1") %>' CssClass="textbox"></asp:TextBox>
                                                            <asp:RangeValidator runat="server" ID="rangeDM1" ControlToValidate="txtMieng1" Type="Double"
                                                                MaximumValue="10" MinimumValue="0" ErrorMessage="*"></asp:RangeValidator>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="M2" SortExpression="DiemMieng2">
                                                        <ItemTemplate>
                                                            <asp:TextBox ID="txtMieng2" runat="server" Text='<%#Bind("DiemMieng2") %>' CssClass="textbox"></asp:TextBox>
                                                            <asp:RangeValidator runat="server" ID="rangeDM2" ControlToValidate="txtMieng2" Type="Double"
                                                                MaximumValue="10" MinimumValue="0" ErrorMessage="*"></asp:RangeValidator>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="M3" SortExpression="DiemMieng3">
                                                        <ItemTemplate>
                                                            <asp:TextBox ID="txtMieng3" runat="server" Text='<%#Bind("DiemMieng3") %>' CssClass="textbox"></asp:TextBox>
                                                            <asp:RangeValidator runat="server" ID="rangeDM3" ControlToValidate="txtMieng3" Type="Double"
                                                                MaximumValue="10" MinimumValue="0" ErrorMessage="*"></asp:RangeValidator>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="M4" SortExpression="DiemMieng4">
                                                        <ItemTemplate>
                                                            <div>
                                                                <div style="float: left">
                                                                    <asp:TextBox ID="txtMieng4" runat="server" Text='<%#Bind("DiemMieng4") %>' CssClass="textbox"></asp:TextBox></div>
                                                                <div>
                                                                    <asp:RangeValidator runat="server" ID="rangeDM4" ControlToValidate="txtMieng4" Type="Double"
                                                                        MaximumValue="10" MinimumValue="0" ErrorMessage="*"></asp:RangeValidator>
                                                                </div>
                                                            </div>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="M5" SortExpression="DiemMieng5">
                                                        <ItemTemplate>
                                                            <div>
                                                                <div style="float: left">
                                                                    <asp:TextBox ID="txtMieng5" runat="server" Text='<%#Bind("DiemMieng5") %>' CssClass="textbox"></asp:TextBox>
                                                                </div>
                                                                <div>
                                                                    <asp:RangeValidator runat="server" ID="rangeDM5" ControlToValidate="txtMieng5" Type="Double"
                                                                        MaximumValue="10" MinimumValue="0" ErrorMessage="*"></asp:RangeValidator>
                                                                </div>
                                                            </div>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="15'1" SortExpression="Diem15_1">
                                                        <ItemTemplate>
                                                            <div>
                                                                <div style="float: left">
                                                                    <asp:TextBox ID="txt151" runat="server" Text='<%#Bind("Diem15_1") %>' CssClass="textbox"></asp:TextBox>
                                                                </div>
                                                                <div>
                                                                    <asp:RangeValidator runat="server" ID="range151" ControlToValidate="txt151" Type="Double"
                                                                        MaximumValue="10" MinimumValue="0" ErrorMessage="*"></asp:RangeValidator>
                                                                </div>
                                                            </div>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="15'2" SortExpression="Diem15_2">
                                                        <ItemTemplate>
                                                            <div>
                                                                <div style="float: left">
                                                                    <asp:TextBox ID="txt152" runat="server" Text='<%#Bind("Diem15_2") %>' CssClass="textbox"></asp:TextBox>
                                                                </div>
                                                                <div>
                                                                    <asp:RangeValidator runat="server" ID="range152" ControlToValidate="txt152" Type="Double"
                                                                        MaximumValue="10" MinimumValue="0" ErrorMessage="*"></asp:RangeValidator>
                                                                </div>
                                                            </div>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="15'3" SortExpression="Diem15_3">
                                                        <ItemTemplate>
                                                            <div>
                                                                <div style="float: left">
                                                                    <asp:TextBox ID="txt153" runat="server" Text='<%#Bind("Diem15_3") %>' CssClass="textbox"></asp:TextBox>
                                                                </div>
                                                                <div>
                                                                    <asp:RangeValidator runat="server" ID="range153" ControlToValidate="txt153" Type="Double"
                                                                        MaximumValue="10" MinimumValue="0" ErrorMessage="*"></asp:RangeValidator>
                                                                </div>
                                                            </div>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="15'4" SortExpression="Diem15_4">
                                                        <ItemTemplate>
                                                            <div>
                                                                <div style="float: left">
                                                                    <asp:TextBox ID="txt154" runat="server" Text='<%#Bind("Diem15_4") %>' CssClass="textbox"></asp:TextBox>
                                                                </div>
                                                                <div>
                                                                    <asp:RangeValidator runat="server" ID="range154" ControlToValidate="txt154" Type="Double"
                                                                        MaximumValue="10" MinimumValue="0" ErrorMessage="*"></asp:RangeValidator>
                                                                </div>
                                                            </div>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="15'5" SortExpression="Diem15_5">
                                                        <ItemTemplate>
                                                            <div>
                                                                <div style="float: left">
                                                                    <asp:TextBox ID="txt155" runat="server" Text='<%#Bind("Diem15_5") %>' CssClass="textbox"></asp:TextBox>
                                                                </div>
                                                                <div>
                                                                    <asp:RangeValidator runat="server" ID="range155" ControlToValidate="txt155" Type="Double"
                                                                        MaximumValue="10" MinimumValue="0" ErrorMessage="*"></asp:RangeValidator>
                                                                </div>
                                                            </div>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="45'1" SortExpression="Diem45_1">
                                                        <ItemTemplate>
                                                            <div>
                                                                <div style="float: left">
                                                                    <asp:TextBox ID="txt451" runat="server" Text='<%#Bind("Diem45_1") %>' CssClass="textbox"></asp:TextBox>
                                                                </div>
                                                                <div>
                                                                    <asp:RangeValidator runat="server" ID="range451" ControlToValidate="txt451" Type="Double"
                                                                        MaximumValue="10" MinimumValue="0" ErrorMessage="*"></asp:RangeValidator>
                                                                </div>
                                                            </div>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="45'2" SortExpression="Diem45_2">
                                                        <ItemTemplate>
                                                            <div>
                                                                <div style="float: left">
                                                                    <asp:TextBox ID="txt452" runat="server" Text='<%#Bind("Diem45_2") %>' CssClass="textbox"></asp:TextBox></div>
                                                                <div>
                                                                    <asp:RangeValidator runat="server" ID="range452" ControlToValidate="txt452" Type="Double"
                                                                        MaximumValue="10" MinimumValue="0" ErrorMessage="*"></asp:RangeValidator>
                                                                </div>
                                                            </div>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="45'3" SortExpression="Diem45_3">
                                                        <ItemTemplate>
                                                            <asp:TextBox ID="txt453" runat="server" Text='<%#Bind("Diem45_3") %>' CssClass="textbox"></asp:TextBox>
                                                            </div>
                                                            <asp:RangeValidator runat="server" ID="range453" ControlToValidate="txt453" Type="Double"
                                                                MaximumValue="10" MinimumValue="0" ErrorMessage="*"></asp:RangeValidator>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="45'4" SortExpression="Diem45_4">
                                                        <ItemTemplate>
                                                            <div>
                                                                <div style="float: left">
                                                                    <asp:TextBox ID="txt454" runat="server" Text='<%#Bind("Diem45_4") %>' CssClass="textbox"></asp:TextBox></div>
                                                                <div>
                                                                    <asp:RangeValidator runat="server" ID="range454" ControlToValidate="txt454" Type="Double"
                                                                        MaximumValue="10" MinimumValue="0" ErrorMessage="*"></asp:RangeValidator>
                                                                </div>
                                                            </div>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Thi" SortExpression="DiemThi">
                                                        <ItemTemplate>
                                                            <div>
                                                                <div style="float: left">
                                                                    <asp:TextBox ID="txtHK" runat="server" Text='<%#Bind("DiemThi") %>' CssClass="textbox"></asp:TextBox></div>
                                                                <div>
                                                                    <asp:RangeValidator runat="server" ID="rangeDHK" ControlToValidate="txtHK" Type="Double"
                                                                        MaximumValue="10" MinimumValue="0" ErrorMessage="*"></asp:RangeValidator>
                                                                </div>
                                                            </div>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="ĐTB" SortExpression="DTBMonHocKy">
                                                        <ItemTemplate>
                                                            <asp:TextBox ID="txtDTBHK" runat="server" Text='<%#Bind("DTBMonHocKy") %>' CssClass="textbox"
                                                                Enabled="false"></asp:TextBox>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                                <HeaderStyle BackColor="#9999FF" Font-Bold="True" BorderColor="Blue" />
                                                <PagerStyle BackColor="#E4ECEF" HorizontalAlign="Center" />
                                                <RowStyle BackColor="#EFF3FB" HorizontalAlign="Center" VerticalAlign="Middle" />
                                            </asp:GridView>
                                        </ContentTemplate>
                                    </asp:UpdatePanel>
                                    <div id="Div2" class="personal_submit clearfix">
                                        <asp:Button runat="server" ID="btnLuuDiemCuaLop" CssClass="button_150" Text="Lưu điểm lớp"
                                            OnClick="btnLuuDiemCuaLop_Click" />
                                        &nbsp;&nbsp;&nbsp;
                                        <asp:Button runat="server" ID="btnGuiBangDiem" CssClass="button_150" Text="Gửi bảng điểm"
                                            OnClick="btnGuiBangDiem_Click" />
                                        &nbsp;&nbsp;&nbsp;
                                        <asp:Button runat="server" ID="btnHuy" CssClass="button_150" Text="Hủy gửi bảng điểm"
                                            OnClick="btnHuy_Click" />
                                    </div>
                                </div>
                            </ContentTemplate>
                        </asp:TabPanel>
                        <asp:TabPanel runat="server" ID="tabDiemTheoExcel" HeaderText="Điểm nhập từ excel">
                            <ContentTemplate>
                                <div class="personal_style_form">
                                    <span class="personal_laber">Đường dẫn file excel </span>
                                    <asp:FileUpload runat="server" ID="fuNhapExcel" />
                                    <asp:Button runat="server" ID="btnNhapExcel" CssClass="button_150" Text="Nhập từ excel"
                                        OnClick="btnNhapExcel_Click" />
                                    <a href="../upload/fileMau.xlsx" title="click here to download" class="TaiFileMau">Tải
                                        file mẫu<img alt="Tải file" class="imgFile" src="../Icon/folder.ico" />
                                    </a>
                                </div>
                                <div class="personal_style_form">
                                    <label runat="server" id="lblNhapExcel" style="color: Red;">
                                    </label>
                                </div>
                                <div id="Div1" class="personal_submit clearfix" style="margin-left: 2px; overflow: scroll;">
                                    <asp:GridView ID="grvDiemExcel" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                                        ForeColor="#333333" Height="28px" OnSelectedIndexChanged="grvNhapDiem_SelectedIndexChanged"
                                        EnableModelValidation="True" PageSize="50">
                                        <Columns>
                                            <asp:TemplateField HeaderText="STT">
                                                <ItemTemplate>
                                                    <%# Container.DataItemIndex + 1 %>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Mã học sinh" SortExpression="MaHS">
                                                <ItemTemplate>
                                                    <asp:Label ID="lblMaHS" runat="server" Text='<%#Bind("MaHS") %>'></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Tên học sinh" SortExpression="TenHS">
                                                <ItemTemplate>
                                                    <asp:Label ID="lblTenHS" runat="server" Text='<%#Bind("TenHS") %>'></asp:Label>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="M1" SortExpression="DiemMieng1">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txtMieng1" runat="server" CssClass="textbox" Text='<%#Bind("DiemMieng1") %>'
                                                        Width="30px"></asp:TextBox>
                                                    <asp:RangeValidator ID="rangeDM1" runat="server" ControlToValidate="txtMieng1" ErrorMessage="*"
                                                        MaximumValue="10" MinimumValue="0" Type="Double"></asp:RangeValidator>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="M2" SortExpression="DiemMieng2">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txtMieng2" runat="server" CssClass="textbox" Text='<%#Bind("DiemMieng2") %>'
                                                        Width="30px"></asp:TextBox>
                                                    <div>
                                                        <asp:RangeValidator ID="rangeDM2" runat="server" ControlToValidate="txtMieng2" ErrorMessage="*"
                                                            MaximumValue="10" MinimumValue="0" Type="Double"></asp:RangeValidator>
                                                    </div>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="M3" SortExpression="DiemMieng3">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txtMieng3" runat="server" CssClass="textbox" Text='<%#Bind("DiemMieng3") %>'
                                                        Width="30px"></asp:TextBox>
                                                    <asp:RangeValidator ID="rangeDM3" runat="server" ControlToValidate="txtMieng3" ErrorMessage="*"
                                                        MaximumValue="10" MinimumValue="0" Type="Double"></asp:RangeValidator>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="M4" SortExpression="DiemMieng4">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txtMieng4" runat="server" CssClass="textbox" Text='<%#Bind("DiemMieng4") %>'
                                                        Width="30px"></asp:TextBox>
                                                    <asp:RangeValidator ID="rangeDM4" runat="server" ControlToValidate="txtMieng4" ErrorMessage="*"
                                                        MaximumValue="10" MinimumValue="0" Type="Double"></asp:RangeValidator>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="M5" SortExpression="DiemMieng5">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txtMieng5" runat="server" CssClass="textbox" Text='<%#Bind("DiemMieng5") %>'
                                                        Width="30px"></asp:TextBox>
                                                    <asp:RangeValidator ID="rangeDM5" runat="server" ControlToValidate="txtMieng5" ErrorMessage="*"
                                                        MaximumValue="10" MinimumValue="0" Type="Double"></asp:RangeValidator>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="15'1" SortExpression="Diem15_1">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt151" runat="server" CssClass="textbox" Text='<%#Bind("Diem15_1") %>'
                                                        Width="30px"></asp:TextBox>
                                                    <asp:RangeValidator ID="range151" runat="server" ControlToValidate="txt151" ErrorMessage="*"
                                                        MaximumValue="10" MinimumValue="0" Type="Double" Width="5px"></asp:RangeValidator>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="15'2" SortExpression="Diem15_2">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt152" runat="server" CssClass="textbox" Text='<%#Bind("Diem15_2") %>'
                                                        Width="30px"></asp:TextBox>
                                                    <asp:RangeValidator ID="range152" runat="server" ControlToValidate="txt152" ErrorMessage="*"
                                                        MaximumValue="10" MinimumValue="0" Type="Double" Width="5px"></asp:RangeValidator>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="15'3" SortExpression="Diem15_3">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt153" runat="server" CssClass="textbox" Text='<%#Bind("Diem15_3") %>'
                                                        Width="30px"></asp:TextBox>
                                                    <asp:RangeValidator ID="range153" runat="server" ControlToValidate="txt153" ErrorMessage="*"
                                                        MaximumValue="10" MinimumValue="0" Type="Double" Width="5px"></asp:RangeValidator>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="15'4" SortExpression="Diem15_4">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt154" runat="server" CssClass="textbox" Text='<%#Bind("Diem15_4") %>'
                                                        Width="30px"></asp:TextBox>
                                                    <asp:RangeValidator ID="range154" runat="server" ControlToValidate="txt154" ErrorMessage="*"
                                                        MaximumValue="10" MinimumValue="0" Type="Double" Width="5px"></asp:RangeValidator>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="15'5" SortExpression="Diem15_5">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt155" runat="server" CssClass="textbox" Text='<%#Bind("Diem15_5") %>'
                                                        Width="30px"></asp:TextBox>
                                                    <asp:RangeValidator ID="range155" runat="server" ControlToValidate="txt155" ErrorMessage="*"
                                                        MaximumValue="10" MinimumValue="0" Type="Double" Width="5px"></asp:RangeValidator>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="45'1" SortExpression="Diem45_1">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt451" runat="server" CssClass="textbox" Text='<%#Bind("Diem45_1") %>'
                                                        Width="30px"></asp:TextBox>
                                                    <asp:RangeValidator ID="range451" runat="server" ControlToValidate="txt451" ErrorMessage="*"
                                                        MaximumValue="10" MinimumValue="0" Type="Double" Width="5px"></asp:RangeValidator>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="45'2" SortExpression="Diem45_2">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt452" runat="server" CssClass="textbox" Text='<%#Bind("Diem45_2") %>'
                                                        Width="30px"></asp:TextBox>
                                                    <asp:RangeValidator ID="range452" runat="server" ControlToValidate="txt452" ErrorMessage="*"
                                                        MaximumValue="10" MinimumValue="0" Type="Double" Width="5px"></asp:RangeValidator>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="45'3" SortExpression="Diem45_3">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt453" runat="server" CssClass="textbox" Text='<%#Bind("Diem45_3") %>'
                                                        Width="30px"></asp:TextBox>
                                                    <asp:RangeValidator ID="range453" runat="server" ControlToValidate="txt453" ErrorMessage="*"
                                                        MaximumValue="10" MinimumValue="0" Type="Double" Width="5px"></asp:RangeValidator>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="45'4" SortExpression="Diem45_4">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txt454" runat="server" CssClass="textbox" Text='<%#Bind("Diem45_4") %>'
                                                        Width="30px"></asp:TextBox>
                                                    <asp:RangeValidator ID="range454" runat="server" ControlToValidate="txt454" ErrorMessage="*"
                                                        MaximumValue="10" MinimumValue="0" Type="Double" Width="5px"></asp:RangeValidator>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="Thi" SortExpression="DiemThi">
                                                <ItemTemplate>
                                                    <asp:TextBox ID="txtHK" runat="server" CssClass="textbox" Text='<%#Bind("DiemThi") %>'
                                                        Width="30px"></asp:TextBox>
                                                    <asp:RangeValidator ID="rangeHK" runat="server" ControlToValidate="txtHK" ErrorMessage="*"
                                                        MaximumValue="10" MinimumValue="0" Type="Double" Width="5px"></asp:RangeValidator>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                        </Columns>
                                        <HeaderStyle BackColor="#9999FF" BorderColor="Blue" Font-Bold="True" Height="30px" />
                                        <PagerStyle BackColor="#E4ECEF" HorizontalAlign="Center" />
                                        <RowStyle BackColor="#EFF3FB" />
                                    </asp:GridView>
                                    <div id="Div3" class="personal_submit clearfix">
                                        <asp:Button runat="server" ID="btnLuuExcel" CssClass="button_150" Text="Nhập điểm"
                                            OnClick="btnLuuExcel_Click" />
                                    </div>
                                </div>
                            </ContentTemplate>
                        </asp:TabPanel>
                    </asp:TabContainer>
                </div>
                <%-- <div id="personalSubmit" class="personal_submit clearfix">
                    <asp:Button runat="server" ID="btnLuu" CssClass="button_150" Text="Lưu điểm" OnClick="btnLuu_Click" />
                </div>--%>
            </div>
        </div>
    </div>
</asp:Content>
